package cn.rxyb.core.random;

import java.io.Serializable;
import java.util.UUID;

/**
 * @author YJH
 * @version 1.0
 * @description
 * @date 2020/6/27 12:12
 */
public final class UUIDRandom implements Serializable {


    private static final long serialVersionUID = 8997327905805244230L;


    /**
     * 生成UUID
     *
     * @return
     */
    public static String getUUID() {
        return UUID.randomUUID().toString();
    }

    /**
     * 生成唯一编号得UUID 去除—
     *
     * @return
     */
    public static String getOffUUID() {
        return UUID.randomUUID().toString().replace("-", "");
    }
}
